import {createApp} from "vue";
import App from "./App.vue";
import "./style.css"
import "animate.css";
import 'element-plus/dist/index.css'
import "./assets/font/font.scss";
import router from "./router";
import {createPinia} from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);

//VueRouter
app.use(router);

//State Store
const MyPinia = createPinia();
MyPinia.use(piniaPluginPersistedstate)
app.use(MyPinia);

//EL-icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}

app.mount("#app");
